package cn.qyd.kaoshi;

import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;

/**
 * @author 邱运铎
 * @date 2024-03-20 18:36
 */
public class Demo01 {
    public static void main(String[] args) {
        Integer[] num = new Integer[]{2,3,4,5,2,3,1,3,5,1};
        Arrays.sort(num);
        System.out.println(Arrays.toString(num));
        Arrays.sort(num, Collections.reverseOrder());
        System.out.println(Arrays.toString(num));
        Arrays.asList(num).stream().forEach(n -> System.out.print(n + " "));
        StringBuilder builder = new StringBuilder("llhelloworld");
        System.out.println(builder.indexOf("l"));
        System.out.println("Helloworld".indexOf("or"));
        System.out.println(builder.delete(builder.length()-1,builder.length()));
        String[] strs = new String[]{"1","hello"};
        System.out.println(builder.indexOf("l",11));
        HashMap hashMap = new HashMap();


    }
}
